package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CInvestmentDao;
import gov.ccswj.modules.ccbusiness.entity.CInvestmentEntity;
import gov.ccswj.modules.ccbusiness.service.CInvestmentService;



@Service("cInvestmentService")
public class CInvestmentServiceImpl implements CInvestmentService {
	@Autowired
	private CInvestmentDao cInvestmentDao;
	
	@Override
	public CInvestmentEntity queryObject(Integer id){
		return cInvestmentDao.queryObject(id);
	}
	
	@Override
	public List<CInvestmentEntity> queryList(Map<String, Object> map){
		return cInvestmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cInvestmentDao.queryTotal(map);
	}
	
	@Override
	public void save(CInvestmentEntity cInvestment){
		cInvestmentDao.save(cInvestment);
	}
	
	@Override
	public void update(CInvestmentEntity cInvestment){
		cInvestmentDao.update(cInvestment);
	}
	
	@Override
	public void delete(Integer id){
		cInvestmentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cInvestmentDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cInvestmentDao.delete(entname);
		
	}
}
